package com.flexandair.templates
{
	import com.flexandair.templates.CustomObjectFile;
	public class ObjectController
	{
		private var _customClasses:Array = new Array();
		public var instance:ObjectController = new ObjectController();
		
		public function ObjectController()
		{
		}
		
		/* public function get instance():ObjectController {
			return _instance;
		} */
		
		public function addCustomClass(customClass:CustomObjectFile):void {
			_customClasses.push(customClass);
		}
		
		public function get customClasses():Array {
			return _customClasses;
		}
		
		public function getCustomClassNames():Array {
			var namesArray:Array = new Array();
			for each (var object:CustomObjectFile in _customClasses) {
				namesArray.push(object.className);
			}
			return namesArray;
		}
	}
}